package pc15;

import java.util.Scanner;

public class J10Circle {

	public static void main(String[] args) {

		final double PI=3.14;
		double r, area, perimeter;
		String result="";

		Scanner sc = new Scanner(System.in);
		System.out.print("반지름: "); r=sc.nextDouble();
		
		//둘레, 면적 가져오기
		area = getArea(r, PI);
		perimeter = getPerimeter(r, PI);
		
		result += "-----------결과 출력 ------------\n";
		result += "원의 반지름: "+r+" 둘레: "+perimeter+", 면적: "+area;
		//출력
		System.out.println(result);
		sc.close();
	}//main

	private static double getArea(double r, double pI) {
		return (pI*r*r);
	}

	private static double getPerimeter(double r, double pI) {
		return (2*pI*r);
	}
} //class
